package lad02.test04;

public class Staff {
    //员工姓名、员工号码、员工基本薪水、员工薪水增长额；
    // 它的方法包括：构造方法、获取员工姓名、获取员工号码、
    // 获取员工基本薪水、计算薪水增长额及计算增长后的工资总额
    String name;
    String number;
    float salary;
    float salaryIncrease;
    public Staff() {

    }

    public void Information(String name, String number,float salary, float salaryIncrease) {
        this.name = name;
        this.number = number;
        this.salary = salary;
        this.salaryIncrease = salaryIncrease;
    }

    public String getName() {
        return name;
    }

    public String getNumber() {
        return number;
    }

    public float getSalary() {
        return salary;
    }

    public float getSalaryIncrease() {
        return salaryIncrease;
    }

    public void totalwages() {
       float totalwages = salary + salaryIncrease;
        System.out.println("总工资:" + totalwages);
    }

}
